
{extend name='layout' /}
{block name='title'}
文章所有分类 | Sinalma博客
{/block}
{block name="subtitle"}Categories{/block}
{block name="subtitleslug"}category{/block}
<!-- 内容主体 -->
{block name='content'}

<div class="categories clearfix" id="categories">
    
</div>

<script type="text/javascript">
    function showcategories(url){
        var xhr = new XMLHttpRequest();
        xhr.onreadystatechange = function (){
            if(xhr.readyState == 4){
                $main_con = document.getElementById('categories');
                loadSuccess();
                $main_con.innerHTML = xhr.responseText;
            }
        }
        xhr.open('get',url,true);
        xhr.send(null);
    }
    $(function(){
        showcategories("__HTP____URL__/index/index/getCategories");
    });
</script>
{/block}


